package com.leileimann.tour.mapper;

import com.leileimann.tour.entity.Hotel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author leileiMann
 * @date 2022/3/9 16:18
 * 酒店mapper层
 */
@Mapper
@Repository
public interface HotelMapper {
    /**获取所有的酒店*/
    List<Hotel> getAllHot();
    /**根据城市名获取酒店*/
    List<Hotel> getHotelByCityname(@Param("cityname")String cityname,@Param("pageNum")int pageNum);
    /**获取相应城市的酒店数量*/
    int getHotelNumByCityName(@Param("cityname")String cityname);
}

